Skip to main content

CsvReader<T>

Assembly: ServiceStack.Text.dll
View Source
Declaration
public class CsvReader<T>

Properties

Headers

View Source
Declaration
public static List<string> Headers { get; set; }

Methods

GetRows(IEnumerable<String>)

View Source
Declaration
public static List<T> GetRows(IEnumerable<string> records)
Returns

System.Collections.Generic.List<<T>>

Parameters
TypeName
System.Collections.Generic.IEnumerable<System.String>records

ReadObject(String)

View Source
Declaration
public static object ReadObject(string csv)
Returns

System.Object

Parameters
TypeName
System.Stringcsv

ReadObjectRow(String)

View Source
Declaration
public static object ReadObjectRow(string csv)
Returns

System.Object

Parameters
TypeName
System.Stringcsv

ReadStringDictionary(IEnumerable<String>)

View Source
Declaration
public static List<Dictionary<string, string>> ReadStringDictionary(IEnumerable<string> rows)
Returns

System.Collections.Generic.List<System.Collections.Generic.Dictionary<System.String,System.String>>

Parameters
TypeName
System.Collections.Generic.IEnumerable<System.String>rows

Read(List<String>)

View Source
Declaration
public static List<T> Read(List<string> rows)
Returns

System.Collections.Generic.List<<T>>

Parameters
TypeName
System.Collections.Generic.List<System.String>rows

ReadRow(String)

View Source
Declaration
public static T ReadRow(string value)
Returns

<T>

Parameters
TypeName
System.Stringvalue